#
# Be sure to run `pod lib lint ADKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ADKit'
  s.version          = '0.1.1'
  s.summary          = 'My Base Project Kit.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/duzexu/ADKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'duzexu' => 'zexu007@qq.com' }
  s.source           = { :git => 'https://gitee.com/zexu007/ADKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.default_subspec = 'Core'
  s.subspec 'Core' do |c|

    c.ios.deployment_target = '8.0'

    c.public_header_files = 'ADKit/**/*.{h}'
    c.source_files = 'ADKit/**/*.{h,m}'

    # s.resource_bundles = {
    #   'ADKit' => ['ADKit/Assets/*.png']
    # }

    # s.frameworks = 'UIKit', 'MapKit'

    c.requires_arc = true
    c.xcconfig = {
                "WARNING_CFLAGS" => "-Wno-ambiguous-macro -Wno-documentation",
                "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES"
               }

    c.dependency 'YYCategories'
    c.dependency 'YYModel'
    c.dependency 'YYWebImage'
    c.dependency 'YYDispatchQueuePool'
    c.dependency 'Masonry'
    c.dependency 'UITableView+FDTemplateLayoutCell'
    c.dependency 'KVOController'
    c.dependency 'MJRefresh'
    c.dependency 'SVProgressHUD'
    c.dependency 'YTKNetwork'
    c.dependency 'LxDBAnything'
    c.dependency 'IQKeyboardManager'
    c.dependency 'DZNEmptyDataSet'
    c.dependency 'Aspects'
    c.dependency 'SAMKeychain'
    c.dependency 'ReactiveObjC'
    c.dependency 'XXNibBridge'
  end

  s.subspec 'DEBUG' do |d|
    d.dependency 'GodEye', '1.0.2'
    d.dependency 'ADKit/Core'
    d.pod_target_xcconfig = { 
                              'GCC_PREPROCESSOR_DEFINITIONS' => 'ENABLE_GodEye=1',
                              'SWIFT_VERSION' => '3.2'
                              }
  end

end
